<groups> <group name="profit" order="3" resid="!Profitti"> <table name="moreprofitablegoods_" /> <table name="moreprofitableusers_" /> </group> </groups>
<report name="moreprofitablegoods_" resid="!Articoli più redditizi" resdescription="!Quali sono gli articoli più redditizi?">
<report name="moreprofitablegoods_" resid="!Articoli più redditizi" resdescription="!Quali sono gli articoli più redditizi?"> <query><![CDATA[ SELECT ORDERROWS.ProductCode AS Prodotto ,SUM((UPRICE - COST) * QTA) AS Guadagno FROM ORDERS INNER JOIN ORDERROWS ON ORDERS.ID = ORDERROWS.ORDERID WHERE ( CREATEDDATE BETWEEN '{param0}' AND '{param1}' ) AND PRODUCTCODE <> '' GROUP BY ORDERROWS.PRODUCTCODE ,ORDERROWS.DESCRIPTION ORDER BY GUADAGNO DESC ]]></query>
<fields> <field fieldname="Prodotto" resid="" /> <field fieldname="Guadagno" resid="" format="€ #.00" /> </fields> <params> <param field="param0" type="Data" resid="!Dalla data" default="-30" /> <param field="param1" type="Data" resid="!Alla data" default="0" /> </params>
<graphs> <graph title="!Articoli più redditizi" type="multiplebar" fieldname="Guadagno" /> </graphs>